]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: allow cancellation before verification starts
authorRay Strode <rstrode@redhat.com>
Thu, 23 Jul 2015 17:17:54 +0000 (13:17 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 24 Jul 2015 13:44:24 +0000 (09:44 -0400)
The user should be allowed to cancel if verification hasn't
started yet and they're typing in their username. This
commit changes the authPrompt cancel function to not
ignore such requests.

https://bugzilla.gnome.org/show_bug.cgi?id=752739

js/gdm/authPrompt.js

index 6e5c79f20f0959fdd73ac29d9d590a5c79a19fc3..b57b00bb7b9689aee0ca1aaf4c3bb748c93b559f 100644 (file)
@@ -501,7 +501,7 @@ const AuthPrompt = new Lang.Class({
     },
 
     cancel: function() {
-        if (this.verificationStatus == AuthPromptStatus.NOT_VERIFYING || this.verificationStatus == AuthPromptStatus.VERIFICATION_SUCCEEDED) {
+        if (this.verificationStatus == AuthPromptStatus.VERIFICATION_SUCCEEDED) {
             return;
         }
         this.reset();